<?php
class Cookie {
    
    public static function set($name, $value, $lifetime = 0, $path = '/', $domain = null, $secure = false, $httponly = true){
        $expiry = ($lifetime != 0) ? (time() + $lifetime) : null;
        return setcookie($name, $value, $expiry, $path, $domain, $secure, $httponly);
    }
}
?>